package training.project.app.web.converters;

import org.springframework.beans.factory.annotation.Autowired;

import training.project.app.domain.Flight;
import training.project.app.service.FlightService;

public class StringToFlightConverter
	{
		@Autowired
		private FlightService flightService;

		public Flight convert(String flightId)
			{
				return flightService.getFlightById(new Integer(flightId));
			}
	}
